<template>
	<h2>函数组件 js</h2>
	<SFCJS name="deng" :age="20">slot</SFCJS>
	<hr />
	<h2>SFC 单文件</h2>
	<test name="deng" :age="20" />
</template>

<script lang="ts">
import { defineAsyncComponent, defineComponent } from 'vue';

export default defineComponent({
	components: {
		Test: defineAsyncComponent(() => import('./components/test.vue')),
		SFCJS: defineAsyncComponent(() => import('./components/函数组件')),
	},
});
</script>

<style scoped></style>
